package router

import (
	"gitlab.yoyiit.com/youyi/go-common/constant"
	"github.com/gin-gonic/gin"
)

type BaseRouter struct {
	somsHandler          handler.CounterpartyContactHandler
}

func (r *BaseRouter) SetRouter(app *gin.Engine) {
	group := app.Group(constant.??????)
	group.GET("/counterpartyContact", r.somsHandler.ListCounterpartyContact())
	group.GET("/counterpartyContact/:id", r.somsHandler.GetCounterpartyContact())
	group.PUT("/counterpartyContact", r.somsHandler.AddCounterpartyContact())
	group.POST("/counterpartyContact/:id", r.somsHandler.EditCounterpartyContact())
	group.DELETE("/counterpartyContact/:id", r.somsHandler.DeleteCounterpartyContact())
	group.POST("/batchDeleteCounterpartyContact", r.somsHandler.BatchDeleteCounterpartyContact())
}